package com.showcai.web.service;

import com.github.pagehelper.PageInfo;
import com.showcai.module.vo.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2018-10-25.
 */

@Component
public class UserServiceClientBack implements UserServiceClient{
    private final static Logger logger = LoggerFactory.getLogger(UserServiceClientBack.class);
    @Override
    public User getUser(Long id) throws Exception {
        logger.info("erro==========================>>>>");
        throw new Exception("erro");
    }

    @Override
    public List<User> getUserList(@RequestParam("map") Map<String, String> map)  throws Exception{
        throw new Exception("erro");
    }

    @Override
    public PageInfo getUserListPageInfo(@RequestParam("map") Map<String, String> map)  throws Exception{
        throw new Exception("erro");
    }
}
